part of '../repository.dart';

class _PurchasedItemGettingSuccessfulResponseDto {
  const _PurchasedItemGettingSuccessfulResponseDto._internal({
    required this.userDto,
  });

  final ApiUserDto userDto;

  factory _PurchasedItemGettingSuccessfulResponseDto.fromJson(Map<String, dynamic> json) {
    final userJson = json['user'] as Map<String, dynamic>;
    final userDto = ApiUserDto.fromJson(userJson);

    return _PurchasedItemGettingSuccessfulResponseDto._internal(
      userDto: userDto,
    );
  }
}
